import request from "@/utils/request";

/**
 * 库存列表查询
 */
export const inventorySummaryPage = props => {
  return request({
    url: "/mall/tenant/merchant/productInventory/inventorySummaryPage",
    method: "post",
    data: props
  });
};

/**
 * 获取库存分布
 */
export const getProductInventoryDistribution = props => {
  return request({
    url: `/mall/tenant/merchant/productInventory/getProductInventoryDistribution/${props.businessSkuId}`,
    method: "get"
  });
};
/**
 * 库存占用明细
 */
export const getInventoryLockDetails = props => {
  return request({
    url: `/mall/tenant/merchant/productInventory/getInventoryLockDetails/${props.businessSkuId}?warehouseId=${props.warehouseId}`,
    method: "get"
  });
};

//导出
export const download = props => {
  return request({
    url: "/mall/tenant/merchant/productInventory/download",
    method: "post",
    responseType: "blob",
    data: props
  });
};

